package com.sinocare.project.common.entity;

import java.util.Date;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;

/**
 * 检测项初始数据表(SccMedicalReport)表实体类
 *
 * @author makejava
 * @since 2021-12-20 18:59:19
 */
@Data
@SuppressWarnings("serial")
@TableName(value = "scc_medical_report")
public class SccMedicalReport extends Model<SccMedicalReport> {
    //主键、报告id
    @TableId(value = "repot_id",type = IdType.AUTO)
    private Integer repotId;
    //项目代号
    private String medicalCode;
    //项目名称
    private String medicalName;
    //单位
    private String medicalUnits;
    //检验方法
    private String medicalMethod;
    //参考值
    private String medicalReferemce;
    //最低参考值
    private Double referemceLow;
    //最高参考值
    private Double referemceHigh;
    //项目类别
    private Integer medicalType;
    //项目协助类型
    private Integer medicalAssistType;
    //项目结果状态(是否在正常范围)
    private Integer medicalStatus;
    //结果解读(建议)
    private String medicalSuggest;
    //创建时间(默认系统时间)
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone="GMT+8")
    private Date createTime;
    //修改时间
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone="GMT+8")
    private Date updataTime;
    //备注
    private String remark;
    //状态(0禁用1正常，默认1)
    private Integer status;
    //区间
    @TableField(exist = false)
    private String reference;
    /**
     * 获取主键值
     *
     * @return 主键值
     */
    @Override
    public Serializable pkVal() {
        return this.repotId;
    }
}

